function _formatCutDownWithDay(date) {
	var leftTime = date - new Date();
	var days = parseInt(leftTime / 1000 / 60 / 60 / 24, 10); //计算剩余的天数
	var hours = parseInt(leftTime / 1000 / 60 / 60 % 24, 10); //计算剩余的小时
	var minutes = parseInt(leftTime / 1000 / 60 % 60, 10); //计算剩余的分钟
	var seconds = parseInt(leftTime / 1000 % 60, 10); //计算剩余的秒数
	days = checkTime(days);
	hours = checkTime(hours);
	minutes = checkTime(minutes);
	seconds = checkTime(seconds);
	var result = '';
	if (days > 0)
		result += days + '天';
	if (hours > 0)
		result += hours + '时';
	if (minutes > 0)
		result += minutes + '分';
	if (seconds >=0)
		result += seconds + '秒'
	return result;
}

function checkTime(i) { //将0-9的数字前面加上0，例1变为01
	if (i < 10) {
		i = "0" + i;
	}
	return i;
}

export const formatCutDownWithDay = _formatCutDownWithDay;
